﻿using Masa.BuildingBlocks.Ddd.Domain.Repositories;
using Masa.CqrsProject.Models;

namespace Masa.CqrsProject.Repositorys
{

    /// <summary>
    /// 订单查询仓储
    /// </summary>
    public interface IOrderReadRepository : IRepository<OrderInfo, int>, IScopedDependency
    {
        /// <summary>
        /// 查询订单
        /// </summary>
        /// <param name="orderSn"></param>
        /// <returns></returns>
        Task<OrderInfo> GetOrderAsync(string orderSn);

        /// <summary>
        /// 查询订单列表
        /// </summary>
        /// <returns></returns>
        Task<List<OrderInfo>> GetOrdersAsync();

    }
}
